<script>
	import {mapActions} from 'vuex'
	import {getConfig} from '@/api/config'
	export default {
		methods: {
			...mapActions(['setOptions'])
			// ...mapMutations(['login'])
		},
		onLaunch: function(options) {
			// console.log(options)
			// console.log('App Lanuch')
		},
		onShow: function(options) {
			// console.log(options)
			this.setOptions(options)
			getConfig().then(res => {
				this.$scope.globalData.config = res.data
			})
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="stylus">
	/*每个页面公共css */
	@import url('./common/css/icon.css')
	.page
		position absolute
		top 0
		right 0
		left 0
		bottom 0
</style>
